<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 宝贝嘉燕
  Date: 2021/9/26
  Time: 11:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
int age=16;
pageContext.setAttribute("age",age);
%>
<c:if test="${age>18}">
    <h1>ZZZ</h1>
</c:if>
<c:if test="${age<18}">
    <h1>你几岁</h1>
</c:if>
</body>
</html>
